package com.spice.service.entity.enums;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spice.common.constant.PermissionConstant;

import com.spice.service.entity.pojo.*;
import lombok.Getter;
import lombok.ToString;


@ToString
public enum TableEnum {



    SHAPE_DESC(PermissionConstant.SHAPE_DESC, ShapeDesc.class),
    NUTRITION_CONTAIN(PermissionConstant.NUTRITION_CONTAIN, NutritionContain.class),
    INGREDIENT(PermissionConstant.INGREDIENT, Ingredient.class),
    SOURCE_CHECK(PermissionConstant.SOURCE_CHECK, SourceCheck.class),
    PACK_MAINTAIN(PermissionConstant.PACK_MAINTAIN, PackMaintain.class),
    PRODUCT_MAINTAIN(PermissionConstant.PRODUCT_MAINTAIN, ProductMaintain.class),
    FLOWER_CHILI_STUDY(PermissionConstant.FLOWER_CHILI_STUDY, FlowerChiliStudy.class),
    CHILI_STUDY(PermissionConstant.CHILI_STUDY, ChiliStudy.class);

    @Getter
    private String tableName;
    @Getter
    private Class<?> tableClass;

    TableEnum(String tableName, Class<?> tableClass) {
        this.tableName = tableName;
        this.tableClass = tableClass;
    }
}
